package main

import "fmt"

// 断言~
func main() {
	var a interface{} //空接口
	var p Point = Point{3, 4}
	a = p //ok

	var b Point
	//b =a  //Cannot use 'a' (type interface{}) as the type Point
	b = a.(Point) //断言~
	fmt.Println(b)

}

type Point struct {
	x int
	y int
}
